// Released to the public domain. Use, modify and relicense at will.
//
// This samples uses the Twitterizer library.
// you can get it on: http://www.twitterizer.net/downloads/
//
// To compile, add the "-r Twitterizer2.dll" flag.


// To use this sample, you need a Twitter account
let userName = "your user name"
let password = "your password"

let stream = new Twitterizer.TwitterStream(userName, password)

// Print on console each time we receive a message
stream.add_OnStatus(Twitterizer.TwitterStatusReceivedHandler(fun status -> printfn "%s: %s" status.User.Name status.Text))

stream.StartStream()

// exit after 20 seconds
System.Threading.Thread.Sleep 20000
